﻿
        <!-- /. NAV SIDE  -->
        <div id="page-wrapper">
            <div id="page-inner">
                <div class="panel panel-default">
                 
       <div class="panel-body">
                            
                            <form role="form"  enctype="multipart/form-data" method="post" action="">
                                新闻添加
                                <br />
                                        <div class="form-group has-success">
                                            <label class="control-label" for="success" >新闻标题</label>
                                            <input name="title" type="text" class="form-control" id="success" />
                                        </div>
                                        <div class="form-group has-warning">
                                            <label class="control-label" for="warning">新闻类型</label>
                                            <!-- <input name="type" type="text" class="form-control" id="warning" /> -->
                                            <select name="cate_id">
                                           <?php foreach($data as $v){?>
                                            <option value="<?php echo $v['id']?>">
                                            <?php echo $v['name']?>

                                            </option>
                                            <?php }?>   
                                            </select>
                                        </div>
                                        <div class="form-group has-error">
                                            <label class="control-label" for="error">新闻图片</label>
                                            <input type="file" multiple="" class="form-control" id="error" name="file[]" />
                                            <div class="form-group has-success">
                                            <label  class="control-label" for="success">新闻作者</label>
                                            <input type="text" name="author" class="form-control" id="success" />
                                        </div>
                                        <div class="form-group has-warning">
                                            <label class="control-label" for="warning">新闻内容</label>
                                            <input name="content" type="text" class="form-control" id="warning" />
                                        </div>
                                        <div class="form-group has-warning">
                                            <label class="control-label" for="warning">发布者</label>
                                            <input name="send_user" type="text" class="form-control" id="warning" />
                                        </div>
                                      <input type="submit" name="" value="提交">  
                                    </form>
                          </div>
                        <!-- <div class="panel-heading">
                            新闻列表
                        </div>
                        <div class="panel-body">
                            <div class="table-responsive">
                                <table class="table table-striped table-bordered table-hover">
                                 <thead>
                                    
                                        <tr>
                                            <th>id</th>
                                            <th>标题</th>
                                            <th>内容</th>
                                            <th>作者</th>
                                            <th>新闻类型</th>
                                            <th>状态</th>
                                            <th>发布者</th>
                                            <th>发布时间</th>
                                            <th>操作</th>
                                        </tr>
                                  
                                   
                                   
                                    </tbody>
                                    <thead>
                                    <?php foreach($data as $v){?> 
                                    
                                        <tr>
                                            <th><?php echo $v['id']?></th>
                                            <th><?php echo $v['title']?></th>
                                            <th><?php echo $v['content']?></th>
                                            <th><?php echo $v['author']?></th>
                                            <th><?php echo $v['type']?></th>
                                            <th><?php echo ($v['status'])?'通过':'未通过';?></th>
                                            <th><?php echo $v['send_user']?></th>
                                            <th><?php echo $v['create_time']?></th>
                                            <th><a href="news_adxit.php?id=<?php echo $v['id'];?>" class="btn btn-info">
                                               <i class="fa fa-pencil-square-o"></i>
                                               编辑</a> 
                                               <a href="news_del.php?id=<?php echo $v['id'];?>""
                                               onclick="return confirm('确定要删除？')" class="btn btn-danger">
                                               <i class="fa fa-trash-o"></i>
                                               删除</a>      
</th>
                                        </tr>
                                  
                                   
                                    <?php }?>
                                    </tbody>
                                </table>
                            </div>
                        </div> -->
      